Keycloak REST Services 1.5.0-Final

Path: / admin / realms / {realm} / users / {id} / logout

Remove all user sessions associated with this user. And, for all client that have an admin URL, tell them to invalidate the sessions for this particular user.

Path parameters:
realm - realm name (not id!)
id - user id

Resource Methods
Method Summary
NameDescription
POST /admin/realms/{realm}/users/{id}/logoutRemove all user sessions associated with this user.

Method Detail

POST /admin/realms/{realm}/users/{id}/logout

Remove all user sessions associated with this user. And, for all client that have an admin URL, tell them to invalidate the sessions for this particular user.

HTTP Example:
POST /admin/realms/{realm}/users/{id}/logout
API Example:

UsersResource.logout({'realm': /* name realm name (not id!) */,
  'id': /* id user id */});

Output:
void

Keycloak REST Services 1.5.0-Final